﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>抽油机智能分析专家系统</title>
    <link href="easyui/themes/default/easyui.css" rel="stylesheet" type="text/css" />
    <link href="easyui/themes/icon.css" rel="stylesheet" type="text/css" />
    <script src="easyui/jquery-1.8.0.min.js" type="text/javascript"></script>
    <script src="easyui/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="js/index.js" type="text/javascript"></script>

    <script type="text/javascript">
        function a() {
            alert('eee');
        }

        $(function () {

            $("#aUpdate").click(function () {

                window.frames["frame"].updateEvent();

            });
            $("#aClose").click(function () {
                $('#w').window('close');

            });

            $('#w').dialog({
                onClose: function () {
                    document.getElementById("frame").src = "";

                }
            });

        });



        function openTzz(obj) {
            if (typeof (obj) == "undefined") {
                alert("请选择一条数据");
                return;
            }
            else {
                document.getElementById("frame").src = "Views/DRAW/Tzz.aspx?id=" + obj;
                $('#w').window('open');
            }
        }

        function openZD(strPara) {
            if (typeof (strPara) == "undefined") {
                alert("请选择一条数据");
                return;
            }
            else {
                document.getElementById("frame").src = "Views/LSZD/ReviewForm.aspx?id=" + strPara;
                $('#w').window('open');
               
            }
        }
        function openIntelligent(obj) {
            if (typeof (obj) == "undefined") {
                alert("请选择一条数据");
                return;
            }
            else {
                document.getElementById("frame").src = "Views/LSZD/intelligent_advise.aspx?id=" + obj;
                $('#w').window('open');
            }
        }

        function openReportForm(para) {

            opentab("tt", "报表编制", "Views/Report/Report.aspx" + para);
            document.getElementById("frame").src = "";
            $('#w').window('close');
        }
        //从智能诊断主页跳转到各个分页面
        function openSonPage(pageName) {
            if (pageName == "sgtzd.aspx") {
                opentab("tt", "示功图诊断", "Views/SGTZD/SGTZDMAIN.aspx");
            }
            if (pageName == "singletest.aspx") {
                opentab("tt", "单井评价", "Views/Analysis/singletest.aspx");
            }
            if (pageName == "balance.aspx") {
                opentab("tt", "平衡调整", "Views/Analysis/Balance.aspx");
            }
            if (pageName == "pztz.aspx") {
                opentab("tt", "偏置调整", "Views/Analysis/Pztz.aspx");
            }
            if (pageName == "analysisMain.aspx") {
                opentab("tt", "诊断主页", "Views/Analysis/analysisMain.aspx");
            }
            
//           document.getElementById("frame").src = "Views/Analysis/singletest.aspx";
            document.getElementById("frame").src = "";
            $('#w').window('close');
        }
        var closed = true;

        $(function () {

            $("#menuTree").tree({
                url: 'Handlers/RoleMenuHandler.aspx?op=getusermenu',
                animate: true,
                onClick: function (node) {
                    if (node.attributes.url != "") {
                        if (node.attributes.url.indexOf("?") >= 0) {
                            opentab("tt", node.text, node.attributes.url + "&mnu_id=" + node.id);
                        }
                        else {
                            opentab("tt", node.text, node.attributes.url + "?mnu_id=" + node.id);
                        }
                    }
                    else {

                        if (node.state == 'closed')
                            $("#menuTree").tree('expand', node.target);
                        else
                            $("#menuTree").tree('collapse', node.target);
                    }
                },
                onBeforeExpand: function (node, param) {
                    //事件触发时，默认会在该url后面加上id=node.id 信息发送到服务器
                    $('#menuTree').tree('options').url = "Handlers/RoleMenuHandler.aspx?op=getusermenu&timespan=" + Math.random() + "&id=" + node.id;
                }
            });
            $.messager.show({
                title: '提示框',
                msg: '亲爱的用户您好，欢迎使用恒通电子系统！',
                timeout: 5000,
                showType: 'slide'
            });
        });
    </script>
</head>
<body class="easyui-layout">
    <div data-options="region:'north', split:true" style="height:80px; background-image:url(images/topbg.jpg)" >  
    <img src="images/top-index1.jpg" alt="抽油机智能分析专家系统" width="1350px" height="70px"/>
    </div>
    <div data-options="region:'west', split:true, title:'我的工作台'" style="width:180px;">
    
        <ul class="easyui-tree" id="menuTree">
            <!--<li iconCls="icon-base">
                <a href="#" onclick="opentab('tt','抽油机智能分析专家系统','Admin/Login.aspx')">抽油机智能分析专家系统</a>
            </li>-->
        </ul>
    </div>
    <div data-options="region:'east', split:true, title:'代办事项'" style="width:200px;"></div>
    <div data-options="region:'center', split:true" style="height:100%">
        <div id="tt" class="easyui-tabs" data-options="fit:true, border:0" >
            
        </div>
    </div>
    
    
    <div data-options="region:'south', split:true" style="height:40px;">
        
        <div  style=" text-align:center; margin:5px 0px;">
            Copyright(C) 2013-2014 大庆恒通电子有限公司 All Rights Reserved.
		</div>
    </div>



    <div id="w" class="easyui-dialog" title="手动修改" data-options="iconCls:'icon-edit',closed:true,toolbar: '#dlg-toolbar'"  style= "width:1020px;height:550px;padding:0px; z-index:10000000">
    <div id="dlg-toolbar" style="padding:2px 0">
		<table cellpadding="0" cellspacing="0" style="width:100%">
			<tr>
				<td style="padding-left:2px">
					<a href="javascript:void(0)" id="aUpdate" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true">保存</a>
					<a href="javascript:void(0)" id="aClose" class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:true">返回</a>
				</td>
			
			</tr>
		</table>
	</div>
    <div  style="padding:0px; height:100%; width:100%">  
				   
                <iframe src="" id="frame"  width="100%" height="100%" scrolling="no" style=" padding:0px"></iframe>
	</div>
  </div>



</body>
</html>
